package cn.service;

import org.springframework.beans.factory.annotation.Autowired;

import cn.mapper.UserMapper;
import cn.pojo.User;

public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	
	
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}


	@Override
	public User login(String devCode) {
		
		User user = userMapper.selectUserByDevCode(devCode);
		
		return user;
	}

}
